var dom = document.querySelector('#<%= dom_id(@reply)%>');
dom.outerHTML = '<%= escape_javascript(render("reply_record", reply: @reply))%>';